package com.bgs.microservices.service.system.syslog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bgs.microservices.service.system.syslog.entity.SysLogException;

import java.util.List;

public interface SysLogExceptionMapper extends BaseMapper<SysLogException> {


//    @Select(" <script> select * from sys_log_exception where  1=1 " + " <when test = 'sysLogExceptionModel.userName != &quot;&quot;  and sysLogExceptionModel.userName != null'> and user_name like '%${sysLogExceptionModel.userName}%'</when>" + " <when test = 'sysLogExceptionModel.startTime != &quot;&quot;  and  sysLogExceptionModel.startTime != null' > and create_time &gt;= '${sysLogExceptionModel.startTime}'</when>" + " <when test = 'sysLogExceptionModel.endTime != &quot;&quot;   and  sysLogExceptionModel.endTime != null'> and create_time &lt;= '${sysLogExceptionModel.endTime}'</when>" + "  order by create_time desc </script>")
//    List<SysLogException> selectSysLogByPage(@Param("sysLogExceptionModel") SysLogExceptionModel sysLogExceptionModel);
//
//    @Select(" <script> select count(1) as count from sys_log_exception where  1=1 "  + " <when test = 'startTime != &quot;&quot;  and  startTime != null' > and create_time &gt;= '${startTime}'</when>" + " <when test = 'endTime != &quot;&quot;   and  endTime != null'> and create_time &lt;= '${endTime}'</when>" + " </script>")
//    Integer selectSysLog(@Param("startTime") String startTime, @Param("endTime")String endTime);


}
